package com.entity;

import java.sql.Date;

import com.baomidou.mybatisplus.annotation.TableName;  

@TableName("prescriptionDetail")
public class Prescriptiondetail {
    private int prescriptionDetailId;  
    private int prescriptionId;  
    private Date startDate;  
    private Date endDate;  
    private int cost;  
    private String state;  
  
    // 构造方法  
    public Prescriptiondetail(int prescriptionId, Date startDate, Date endDate, int cost, String state) {
        this.prescriptionId = prescriptionId;  
        this.startDate = startDate;  
        this.endDate = endDate;  
        this.cost = cost;  
        this.state = state;  
    }  
  
    // 也可以是空构造方法，如果你使用JPA或Hibernate之类的ORM框架，它们可能需要一个无参构造方法  
    public Prescriptiondetail() {
    }  
  
    // Getter和Setter方法  
    public int getPrescriptionDetailId() {  
        return prescriptionDetailId;  
    }  
  
    public void setPrescriptionDetailId(int prescriptionDetailId) {  
        this.prescriptionDetailId = prescriptionDetailId;  
    }  
  
    public int getPrescriptionId() {  
        return prescriptionId;  
    }  
  
    public void setPrescriptionId(int prescriptionId) {  
        this.prescriptionId = prescriptionId;  
    }  
  
    public Date getStartDate() {  
        return startDate;  
    }  
  
    public void setStartDate(Date startDate) {  
        this.startDate = startDate;  
    }  
  
    public Date getEndDate() {  
        return endDate;  
    }  
  
    public void setEndDate(Date endDate) {  
        this.endDate = endDate;  
    }  
  
    public int getCost() {  
        return cost;  
    }  
  
    public void setCost(int cost) {  
        this.cost = cost;  
    }  
  
    public String getState() {  
        return state;  
    }  
  
    public void setState(String state) {  
        this.state = state;  
    }  
  
    // toString方法，可选，用于打印对象信息  
    @Override  
    public String toString() {  
        return "PrescriptionDetail{" +  
                "prescriptionDetailId=" + prescriptionDetailId +  
                ", prescriptionId=" + prescriptionId +  
                ", startDate=" + startDate +  
                ", endDate=" + endDate +  
                ", cost=" + cost +  
                ", state='" + state + '\'' +  
                '}';  
    }  
}